package it.enea.xlab.firstcrud.crudmanager;

import it.enea.xlab.firstcrud.entity.Supplier;

import java.util.HashMap;

import javax.ejb.Local;


/**
 * @author Cristiano Novelli
 */

@Local
public interface CRUDManagerLocal {
	
	public Long createSupplier(Supplier supplier);

	public Supplier readSupplier(Long supplierId);

	public Boolean updateSupplier(Supplier supplier);
	
	public Boolean deleteSupplier(Long supplierId);

	//public Collection<Supplier> getSupplierRegister();
	
	/**
	 * temporaneo, per il test (converrebbe farlo fare all'application server per poi estrapolare sottoinsiemi)
	 * @return
	 */
	public HashMap<Long, Supplier> getRegister();
}
